package cc.mrbird.febs.power.service.impl;

import cc.mrbird.febs.power.entity.AccountInfo;
import cc.mrbird.febs.power.dao.AccountInfoMapper;
import cc.mrbird.febs.power.service.IAccountInfoService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author MrBird
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class AccountInfoServiceImpl extends ServiceImpl<AccountInfoMapper, AccountInfo> implements IAccountInfoService {

    private final AccountInfoMapper accountInfoMapper;

    @Override
    public IPage<List<Map>> getAccountInfoByPage(Page page, AccountInfo accountInfo) {
        return accountInfoMapper.getAccountInfoByPage(page,accountInfo);
    }
}
